package com.hzspace.aop.controller;

import com.hzspace.aop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2020/3/1_23:12
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("/insert")
    public void insert(){
        userService.insert();
    }

    @GetMapping("/delete")
    public void delete(){
        userService.delete();
    }

    @GetMapping("/find")
    public void find(){
        userService.find();
    }

    @GetMapping("/update")
    public void update(){
        userService.update();
    }
}
